numberOfSections: number = 0;
timestamp: Date = new Date(0);
pointerToSymbolTable: number = 0;
numberOfSymbols: number = 0;
sizeOfOptionalHeader: number = 0;
characteristics: ImageCharacteristics = ImageCharacteristics.Dll | ImageCharacteristics.Bit32Machine;
pe.formatEnum(this.machine, Machine) + " " +
pe.formatEnum(this.characteristics, ImageCharacteristics) + " " +
"Sections[" + this.numberOfSections + "]";
read(reader: io.BufferReader) { this.pe = reader.readInt();
if (this.pe != <number>PESignature.PE)
throw new Error("PE signature is invalid: " + (<number>(this.pe)).toString(16).toUpperCase() + "h."); this.machine = reader.readShort();
this.numberOfSections = reader.readShort();
this.timestamp = new Date(0);
this.timestamp.setTime(reader.readInt() * 1000);
this.pointerToSymbolTable = reader.readInt();
this.numberOfSymbols = reader.readInt();
this.sizeOfOptionalHeader = reader.readShort();
this.characteristics = reader.readShort();